package hdd;

import hdd.config.RmiBeanConfig;
import hdd.config.RootConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import service.TestService;

public class ServerStart {
    public static void main(String[] args){
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext( RootConfig.class );
        System.out.println("rmi  start");
        TestService testService = (TestService)applicationContext.getBean( "testServiceImpl" );
        testService.gesTest();
        try {
            Thread.sleep( 50L );
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        testService.gesTest();
    }
}
